package com.example.service;


import com.example.config.Configuration;
import com.example.dto.User;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "hello-service",fallback = HelloServiceFallBack.class,configuration = Configuration.class)
public interface HelloService1 {

    @RequestMapping("hello")
    String hello();


    @RequestMapping(value = "hello1",method = RequestMethod.GET)
    String hello1(@RequestParam("name") String name);


    @RequestMapping(value = "hello2",method = RequestMethod.GET)
    User hello2(@RequestHeader("name") String name,@RequestHeader("age") Integer age);


    @RequestMapping(value = "hello3",method = RequestMethod.POST)
    String hello3(@RequestBody User user);

}
